import Vue from 'vue'
import Vuex from 'vuex'

import Login from './modules/login'
import Product from './modules/product'
import Content from './modules/content'


Vue.use(Vuex);

const store = new Vuex.Store({
  modules: {
    login: {
      namespaced: true,
      ...Login
    },
    // Index,
    product: {
      namespaced: true,
      ...Product
    },
    content: {
      namespaced: true,
      ...Content
    }
  }
})

export default store
